package com.zy.dp.prototype.example6;

public class Product implements ProductProtype
{
	private String productId;

	private String name;

	public String getProductId()
	{
		return productId;
	}

	public void setProductId(String productId)
	{
		this.productId = productId;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	@Override
	public String toString()
	{
		return "产品编号=" + this.productId + ",产品名称" + this.name;
	}

	@Override
	public ProductProtype cloneProduct()
	{
		Product product = new Product();
		product.setProductId(this.productId);
		product.setName(this.name);
		return product;
	}

}
